﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApp1
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            MessageBox.Show("你好，靓仔！");
        }

        private void Form1_MouseClick(object sender, MouseEventArgs e)

        {
            //BackColor = Color.Blue;
            var ts = MessageBox.Show("你觉得你很帅吗？", "提示", MessageBoxButtons.YesNo, MessageBoxIcon.Question);
            if(ts==DialogResult.Yes)
            {
                MessageBox.Show("一般般的帅！");
            }else
            {
                MessageBox.Show("否认也没有用。");
            }
        }

        private void Form1_MouseDoubleClick(object sender, MouseEventArgs e)

        {
            this.Close();
        }

       
    }
}
